package com.wpre.blogsystem.service;
import com.wpre.blogsystem.common.pojo.request.AddBlogParam;
import com.wpre.blogsystem.common.pojo.request.UpdateBlogParam;
import com.wpre.blogsystem.common.pojo.response.BlogInfoResponse;
import com.wpre.blogsystem.common.pojo.response.BlogInfoResponseSimple;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-12-04
 * Time: 14:41
 */
public interface BlogService {
    List<BlogInfoResponseSimple> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    boolean addBlog(AddBlogParam param);

    boolean updateBlog(UpdateBlogParam param);

    boolean deleteBlog(@NotNull Integer blogId);
}
